]> dgit.raspbian.org Git - gnome-shell.git/commit
swipeTracker: Handle invalid position when finding previous point
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Feb 2026 13:12:25 +0000 (14:12 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 5 Feb 2026 16:09:29 +0000 (17:09 +0100)
commitae67cb03f75d485da73e7c2af25da67aa772c807
treea237c8b3ae3d598b64a7717d0dd0d529187f6e28
parentc481543906d4f843f8aec26029a760ab82e213ef
swipeTracker: Handle invalid position when finding previous point

Commit 8e29babca8adc677 switched to `findLastIndex()` to find
the previous point, which inadvertently changed what value is
returned for invalid input.

Restore the old fallback value and log a stacktrace, so we can
hopefully track down what causes the invalid input.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8856
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4062>
(cherry picked from commit eb9caf0028be0d5740fc419e7e865584c0f52cab)
js/ui/swipeTracker.js